import { ExtractPropTypes, PropType } from "vue";

export declare type HighLightPropsType = "phone" | "";
export const highLightProps = {
  keyword: {
    type: [Array, String] as PropType<string[] | string>,
    default: "",
  },
  content: {
    type: String,
    default: "",
  },
  color: {
    type: String,
    default: "#00ADEF",
  },
  ellipsis: {
    type: Boolean,
    default: false,
  },
  type: {
    type: String as PropType<HighLightPropsType>,
    default: "",
  },
};

export type HighLightProps = ExtractPropTypes<typeof highLightProps>;
